package com.education.user.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "welco-service")
public interface SchoolClient {

    @RequestMapping(value = "/app/tSchool/findBySchoolId",method = RequestMethod.GET)
    public String findBySchoolId(@RequestParam(value = "schoolId", required = false) Integer schoolId);

    /**
     * 远程调用 修改用户id
     * @param userId
     * @param phone
     * @return
     */
    @RequestMapping(value = "/tStudent/updateByFeign",method = RequestMethod.GET)
    public String updateByFeign(@RequestParam(value = "userId", required = false) Integer userId, @RequestParam(value = "phone", required = false) String phone);

}
